<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        ul{
            display: flex;
            flex-wrap: wrap;
            /* 设置主轴方向对齐 左右平分 */
            justify-content: space-evenly;
            /* 当设置侧轴居中不来效果，我们需要查看父盒子宽度是否和子盒子一样 */
            align-items: center;
            height: 100%;
        }
        li{
           /* 每个li占整个 */
            /* flex: 30%; */
            width: 100px;
            height: 100px;
            list-style: none;
            background-color: rgb(94, 65, 223);
        }
        .top {
            margin: 0 auto;
            width: 1000px;
            /* 设置弹性布局 */
            display: flex;
        }

        .bottom {
            height: 100px;
            background-color: green;
        }

        .left {
            float: left;
            width: 200px;
            height: 300px;
            background-color: #ccc;
        }
        .right {
            float: right;
            width: 790px;
            height: 300px;
            background-color: skyblue;
        }
    </style>
</head>

<body>
    <!-- 父子级标签, 子级浮动, 父级没有高度, 后面的标准流盒子会受影响, 显示到上面的位置 -->
    <div class="top">
        <div class="left"></div>
        <div class="right">
            <ul>
                <li>1</li>
                <li>2</li>
                <li>3</li>
                <li>1</li>
                <li>2</li>
                <li>3</li>
            </ul>
        </div>
    </div>
    <div class="bottom"></div>
</body>

</html>